Ext.define('yiyuan.view.Erjigent', {
    extend: 'Ext.Panel',
    xtype: 'erjigentView',
    recordData:null,
    config: {
        recordData:null,
        layout:"vbox",
        scrollable:true,
        items: [
            {
                docked: 'top',
                xtype: 'toolbar',
                title:"",
                items:[
                    {
                        xtype:"button",
                        iconCls:"btn_home",
                        handler:function(){
                            Ext.Viewport.setActiveItem("main")
                        }
                    },
                    {
                        xtype:"spacer"
                    },
                    {
                        xtype:"button",
                        iconCls:"btn_setting",
                        handler:function(){
                            Ext.fly("floatdiv_id").show();
                        }
                    }
                ]
            },
            {
                xtype: 'img',
                src:'resources/images/4-1.png',
                flex:1,
                listeners:{
                    tap:function(img){
                        console.log(img)
                        if(img.getSrc().indexOf("4-1")>=0){
                            img.setSrc("resources/images/4-2.png");

                        }else{
                            img.setSrc("resources/images/4-1.png");
                        }
                    }
                }
            }
        ],listeners:{
            show:function(){
                var d_w_f_w=document.body.clientWidth*0.76;
                Ext.select(".float_qg_class").setHeight(d_w_f_w*504/579)
                //Ext.fly("floatdiv_id").show();
            },
            deactivate:function(){
                console.log("触发ErjigentView_deactivate事件")
                Ext.fly("floatdiv_id").hide();
            }
        }
    }

});
